import { Logger } from "@nestjs/common";
import { CustomPrismaClientFactory } from "nestjs-prisma";
import {
    type ExtendedPrismaClient,
    extendedPrismaClient,
  } from './prisma.extension';

class ExtenedPrismaConfigService implements CustomPrismaClientFactory<ExtendedPrismaClient> {
    constructor() {
        Logger.log('ExtendedPrismaConfigService');
    }

    createPrismaClient(): ExtendedPrismaClient {
        return extendedPrismaClient;
    }
}

export default ExtenedPrismaConfigService;